﻿<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<button class="layui-btn" id="synData">同步IP</button>
<button class="layui-btn" id="synStop">同步关闭</button>
<!-- layui规范化用法 -->
<script type="text/javascript">
	$(document).on("click", "#synData", function() {
		layer.confirm('确定执行同步吗?', function(index) {
			workUtils.ajaxGet('toSynData', {}, function() {
				layer.msg('正在同步IP信息...');
			});
			layer.close(index);
		});
	});
	$(document).on("click", "#synStop", function() {
		layer.confirm('确定执行同步吗?', function(index) {
			workUtils.ajaxGet('toSynStop', {}, function() {
				layer.msg('正在同步关闭...');
			});
		});
	});
</script>
